﻿using System;
using System.Configuration;

namespace NCommet.Core.Configuration
{
    /// <summary>
    /// A configuration element that holds the type of a module.
    /// </summary>
    public class ModuleCfgElement : ConfigurationElement
    {
        /// <summary>
        /// The fully qualified name of a type that implements <see cref="NCommet.Core.Agents.IModule" />
        /// </summary>
        [ConfigurationProperty("type", IsRequired = true, IsKey = true)]
        public string Type { get { return this["type"] as string; } }
    }
}
